package org.grottarossa.template.data.enums;

/**
 * DiscussionType Rappresenta il tipo di discussione.
 * 
 * */
public enum EnumDiscussionType 
{
	Default(0),
	/**
	 * Topic
	 * */
	Topic(3),
	/**
	 * Reply ad una discussion
	 * */
	Reply(4),
	/**
	 * Update di una discussion
	 * */
	Update(4);	
	
	EnumDiscussionType(int val) 
	{ }
	
	public static EnumDiscussionType getEnumValue(int target)
	{
		switch (target) 
		{
		case 0:
			return Default;
		case 3:		
			return Topic;	
		case 4:		
			return Reply;
		default:
			return Default;
		}
	}	
	
	public boolean isDefault()
	{
		switch (this) {
		case Default:			
			return true;		
		}
		return false;
	}
	public boolean isTopic()
	{
		switch (this) {
		case Topic:			
			return true;		
		}
		return false;
	}
	public boolean isReply()
	{
		switch (this) {
		case Reply:			
			return true;		
		}
		return false;
	}
	
	
	
}